from selenium import webdriver
import time
from lxml import etree

url='https://www.ptpress.com.cn/shopping/search?tag=search&orderStr=hot&level1=75424c57-6dd7-4d1f-b6b9-8e95773c0593'
driver=webdriver.Chrome()
driver.get(url)
driver.implicitly_wait(10)
html = driver.page_source
tree = etree.HTML(html)
book_list=tree.xpath("//li[@class='item']")
booklist= {}
for i in book_list:
    book_name=i.xpath(".//p[1]/a/text()")
    book_price=i.xpath(".//p[2]/a/text()")
    booklist['name']=book_name
    booklist['price']=book_price
    print(booklist)